
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module corporation.session
* @author: Hjava
* @description: 入离职模块协议外包
* @since: 2018-07-21 17:06:24
*/
var corporation_constant_1 = __webpack_require__(/*! _core/Corporation/corporation.constant */ "./src/core/Corporation/corporation.constant.ts");
var protocol_1 = __webpack_require__(/*! _util/protocol */ "./src/core/utils/protocol.ts");
var bufferType_1 = __webpack_require__(/*! _util/bufferType */ "./src/core/utils/bufferType.ts");
var timer_1 = __webpack_require__(/*! _util/timer */ "./src/core/utils/timer.ts");
var CorporationSession = {};
/**
 * Req
 * @type {Function}
 */
CorporationSession.CorpBindFinishReq = protocol_1.default.Response.extend({
    category: 'Corporation',
    uri: corporation_constant_1.default.Corporation.URI_CORP_BIND,
    init: function () {
        this.cid = 0; // 业务类型
        this.cname = 0;
        this.uid = '';
        this.cts = timer_1.default.get();
    },
    marshall: function () {
        this.push(this.cid, bufferType_1.default.INT);
        this.push(this.cname, bufferType_1.default.INT);
        this.push(this.uid, bufferType_1.default.LONG);
        this.push(this.cts, bufferType_1.default.LONG);
    },
    unmarshall: function () {
        this.cid = this.popInt();
        this.cname = this.popInt();
        this.uid = this.popLong().value();
        this.cts = this.popLong().value();
    }
});
CorporationSession.CorpUnbindFinish = protocol_1.default.Response.extend({
    category: 'Corporation',
    uri: corporation_constant_1.default.Corporation.URI_CORP_UNBIND,
    init: function () {
        this.cid = 0; // 业务类型
        this.cname = 0;
        this.uid = '';
        this.cts = timer_1.default.get();
    },
    marshall: function () {
        this.push(this.cid, bufferType_1.default.INT);
        this.push(this.cname, bufferType_1.default.INT);
        this.push(this.uid, bufferType_1.default.LONG);
        this.push(this.cts, bufferType_1.default.LONG);
    },
    unmarshall: function () {
        this.cid = this.popInt();
        this.cname = this.popInt();
        this.uid = this.popLong().value();
        this.cts = this.popLong().value();
    }
});
exports.default = CorporationSession;


//# sourceURL=webpack://MTDX/./src/core/Corporation/corporation.session.ts?